package com.ygs.secs.service.impl;

import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

import com.ygs.secs.model.EnterprisePhoto;
import com.ygs.secs.mapper.EnterprisePhotoMapper;
import com.ygs.secs.service.EnterprisePhotoService;

@Service
public class EnterprisePhotoServiceImpl implements EnterprisePhotoService {

    @Resource
    private EnterprisePhotoMapper enterprisePhotoMapper;

    @Override
    public int deleteByPrimaryKey(Integer photoid) {
        return enterprisePhotoMapper.deleteByPrimaryKey(photoid);
    }

    @Override
    public int insert(EnterprisePhoto record) {
        return enterprisePhotoMapper.insert(record);
    }

    @Override
    public int insertSelective(EnterprisePhoto record) {
        return enterprisePhotoMapper.insertSelective(record);
    }

    @Override
    public EnterprisePhoto selectByPrimaryKey(Integer photoid) {
        return enterprisePhotoMapper.selectByPrimaryKey(photoid);
    }

    @Override
    public int updateByPrimaryKeySelective(EnterprisePhoto record) {
        return enterprisePhotoMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(EnterprisePhoto record) {
        return enterprisePhotoMapper.updateByPrimaryKey(record);
    }

    @Override
    public int updateBatch(List<EnterprisePhoto> list) {
        return enterprisePhotoMapper.updateBatch(list);
    }

    @Override
    public int updateBatchSelective(List<EnterprisePhoto> list) {
        return enterprisePhotoMapper.updateBatchSelective(list);
    }

    @Override
    public int batchInsert(List<EnterprisePhoto> list) {
        return enterprisePhotoMapper.batchInsert(list);
    }

    @Override
    public List<EnterprisePhoto> selectEnterpriseImg(String enterpriseid) {
        return enterprisePhotoMapper.selectImgByEnterpriseID(enterpriseid);
    }

}
